package com.cangshi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Eoly on 2016/12/22.
 */

@Controller
//@CrossOrigin(origins = "*", maxAge = 3600,methods={RequestMethod.GET})
public class InitController {

//    @Autowired
//    WorkService workService;

    @ResponseBody
    @RequestMapping(value = "/index", method = RequestMethod.GET ,produces = "text/html;charset=UTF-8")
    public String init(){
        return "这是一个项目？";
    }
}
